﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using Tools;
using DAL;

namespace BLL
{
    public class ManageLoginBLL
    {
        public static Admin LoginVerification(string AdminName, string AdminPwd)
        {
            List<Admin> AdminData = ManageLoginDAL.AdminData();
            Admin admin = AdminData.Where(a=>a.AdminName==AdminName&&a.AdminPwd==AdminPwd).SingleOrDefault();
            return admin;
        }
        public static List<Permission> PermissionList(int AdminID)
        {
            return ManageLoginDAL.PermissionList(AdminID);
        }
    }
}
